package Tank51;

public class InputException extends Exception{
    private String name;
    private int age;

    public InputException(){}

    public InputException(String name,int age){
        this.name = name;
        this.age = age;
    }
    public String toString(){
        return "输入的姓名是" + name + "姓名或年龄输入不合法";
    }
}
